package com.yingyi.util;

import lombok.Data;

@Data
public class JsonResult {
    private Boolean success = true;

    private String message = "操作成功";

    private Object resultObj;

    public static JsonResult me() {
        return new JsonResult();
    }

    public JsonResult setMsg(String msg) {
        this.message = msg;
        this.success = false;

        return this;
    }

}
